def get_R(L, W, layer):
    mydict = { "M0": 1.1358, \
               "M1": 0.687, \
               "M2": 0.7135, \
               "M3": 0.9801, \
               "M4": 0.7024, \
               "M5": 0.5232, \
               "M6": 0.5232, \
               "M7": 0.5232, \
               "M8": 0.5232, \
               "M9": 0.5232, \
               "M10": 0.2076, \
               "M11": 0.2076, \
               "M12": 0.0229, \
               "M13": 0.0229, \
               "AP": 0.011}
    m = L/W
    return m*mydict[layer]

def get_dentity(w=1, s=1):
    t = 0.85
    
    if w == 1:
        s = t*s/(1-t)
        print(f"W={w} S={s}")
    
    if s == 1:
        s = (1-t)*w/t
        print(f"W={w} S={s}")


a1 = get_R(8.876, 0.5, "M6")
a2 = get_R(10.928, 0.8, "M6")

a3 = get_R(4.242, 0.5, "M5")
a4 = get_R(3.143, 0.5, "M5")
print(a1+a3, a2+a4)
print(a2)